package com.wsx.sky.http.dao;

import com.wsx.sky.http.model.HttpServer;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author wangshuaixin
 * @Title: com.wsx.sky.http.dao.HttpServerMapper
 * @Description: TODO
 * @date 2018/12/10
 */
@Mapper
public interface HttpServerMapper {

    @Select("select id,name from http_server where name = #{name}")
    HttpServer get(String name);

    @Insert("insert into http_server(name) values(#{name})")
    int save(String name);
}
